/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package experiments.Logging;

import org.apache.log4j.Logger;

/**
 *
 * @author o.rybyanskyy
 */
public class Formatter {
    static Logger logger = Logger.getLogger("main.printer.formatter");
    
    public static String format(String s){
        String newValue;
        
        newValue = "===> " + s + "<===";
        if (logger.isDebugEnabled()){
            logger.debug("Formatting completed."
                        + "Original value: " + s + "."
                        + "Formatted value: " + newValue + ".");
        }
        
        return newValue;
    }
    
}
